home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / wincap.zip / WINCAP.H < prev    next >
Text File  |  1991-11-05  |  2KB  |  59 lines

  1. /* Header file for wincap.c */
  2. /* Copyright (c) 1991 Microsoft Corporation. All rights reserved. */
  3.  
  4. /*
  5.  * constants for menu items 
  6.  */
  7.  
  8. #define IDM_ABOUT 101
  9. #define IDM_CAPTURE 102
  10.  
  11. /*
  12.  * constants for OPTIONSTRUCT list of
  13.  * options 
  14.  */
  15.  
  16. #define OPTION_FILE 0x01
  17. #define OPTION_PRINTER 0x02
  18.  
  19. /*
  20.  * User-defined messages
  21.  */
  22.  
  23. #define WM_PRTSC  (WM_USER + 10)
  24. #define WM_REPAINT (WM_USER + 11)
  25.  
  26. typedef struct tagOPTIONS {
  27.     int iOptionArea;        // Area to capture Option selected
  28.     int iOptionWindow;      // Window to capture option selected
  29.     int iOptionDest;        // Option for destination of bitmap
  30.     char szFileName[100];       // Name of file to save to
  31.     int iOptionPrint;       // Print Options
  32.     int iXScale;
  33.     int iYScale;
  34.     } OPTIONSTRUCT;
  35.  
  36. typedef OPTIONSTRUCT FAR *LPOPTIONSTRUCT;
  37.  
  38. /*
  39.  * function prototypes
  40.  */
  41.  
  42. void cwCenter(HWND, int);
  43.  
  44. LONG FAR PASCAL WndProc(HWND, WORD, WORD, LONG);
  45. BOOL FAR PASCAL OptionsDlgProc(HWND, WORD, WORD, LONG);
  46. BOOL FAR PASCAL AboutDlgProc(HWND, WORD, WORD, LONG);
  47. BOOL FAR PASCAL HelpDlgProc(HWND, WORD, WORD, LONG);
  48. BOOL FAR PASCAL SavePrintDlgProc(HWND, WORD, WORD, LONG);
  49. BOOL FAR PASCAL InfoBoxDlgProc(HWND, WORD, WORD, LONG);
  50. BOOL FAR PASCAL SavingDlgProc(HWND, WORD, WORD, LONG);
  51. DWORD FAR PASCAL KeyboardHook (int iCode, WORD wParam, LONG lParam);
  52. void DrawIndent(HWND hDlg, int ID, int iType);
  53. void StretchIconToWindow(HWND hWndDlg, LPSTR szIconName);
  54. void DoCapture(HANDLE);
  55. void RubberBandScreen(LPRECT lpRect);
  56. void DrawSelect( HDC hdc, BOOL fDraw, LPRECT lprClip);
  57. void PASCAL NormalizeRect (LPRECT prc);
  58. HWND SelectWindow(void);
  59.